/*
 * Copyright user2010
 * All rights reserved
 */

package org.myorg.applitest.gui.swing.components.panel;

import javax.swing.GroupLayout;
import javax.swing.JLabel;

/**
 *
 * @author user
 */
public class PnlIdtAnm extends PnlIdtAbs{

    String getIdentiteNom() {
        return pnlName.getNameNom();
    }

    String getIdentiteDateNaissance() {
        return pnlDate.getDateNaissance();
    }
    String getIdentiteDateMort() {
        return pnlDate.getDateMort();
    }
    String getIdentiteSexe() {
        return pnlDate.getSexe();
    }
        public String getIdProprietaire(){
        return pnlName.getIdProprietaire();
    }
    public String getCastre(){
        return "p";
    }
    public String getEspece(){
        return pnlName.getEspece();
    }
    public String getRace(){
        return pnlName.getRace();
    }

    @Override
    protected void initComponents() {

        this.lblAdresse = new JLabel();


        lblAdresse.setText("Adresse");
        this.pnlName = new PnlIdtAnmName();
        this.pnlDate = new PnlIdtAnmSexDat();


        javax.swing.GroupLayout layout = new GroupLayout(this);
        this.setLayout(layout);


        layout.setHorizontalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                    .addComponent(pnlName)
                    .addComponent(pnlDate))
             )
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(pnlName)
                .addGap(20,20,20)
                .addComponent(pnlDate)
            )
        );
    }
    private PnlIdtAnmName pnlName;
    private PnlIdtAnmSexDat pnlDate;
    private JLabel lblAdresse;
}
